﻿#include<iostream>
class HpMed {
public:
	int Recover{ 100 };
};
class Role {
	int hp;
	int maxHp;
public:
	Role() {
		hp = 1000;
		maxHp = 3500;
	}
	void GetHp() {
		std::cout << "HP:" << hp << "\\" << maxHp << std::endl;
	}
	void EatMed(HpMed& hpMed) {
		hp += hpMed.Recover;
		hp = hp > maxHp ? maxHp : hp;
	}
};
int main() {
	Role user;
	HpMed med;

	user.GetHp();
	while (1) {
		int a;
		std::cin >> a;
		user.EatMed(med);
		system("cls");
		user.GetHp();
	}
	user.EatMed(med);
	user.GetHp();
}